<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

	function errorMessage($error)
	{
		$msg = "";
		
		$msg .= "<div class='ui-state-error ui-corner-all' style='padding: 0 .7em;'>"; 
		$msg .= "	<p><span class='ui-icon ui-icon-alert' style='float: left; margin-right: .3em;'></span>"; 
		$msg .= "	<strong>Aten&ccedil;&atilde;o:</strong> Alguns campos apresentaram erros!</p>";
		$msg .= "	<ul>";
		$msg .= $error;
		$msg .= "	</ul>";
		$msg .= "</div>";
		
		return $msg;
	}
	
	function informationMessage($info)
	{
		$msg = "";
		$msg .= "<div class='ui-state-highlight ui-corner-all' style='margin-top: 5px; padding: 0 .7em;'>"; 
		$msg .= "	<p><span class='ui-icon ui-icon-info' style='float: left; margin-right: .3em;'></span>";
		$msg .= "	<strong>Informa&ccedil;&atilde;o!</strong> ".$info."</p>";
		$msg .= "</div>";
		
		return $msg;
	}
